L = []
while True:
    s = input('输入成绩：')
    if s == '':
        break
    n = int(s)
    if n < 0:
        break
    L.append(n)

L2 = sorted(L, reverse=True)
print(L2[:3])